package com.jijuxie.agent.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jijuxie.agent.domain.DealRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.math.BigDecimal;
import java.util.Map;

@Mapper
public interface DealRecordMapper extends BaseMapper<DealRecord> {

    /**
     * 统计经纪人业绩
     */
    Map<String, Object> selectAgentStats(@Param("agentId") Long agentId);

    /**
     * 统计本月业绩
     */
    Map<String, Object> selectMonthStats(@Param("agentId") Long agentId);
}
